home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / exec / memory.inc < prev    next >
Text File  |  1998-06-24  |  1KB  |  63 lines

  1. include "inc/exec/nodes.inc";
  2.  
  3. struct MemChunk is
  4.   mc_Next:ulong;
  5.   mc_Bytes:ulong;
  6. ;
  7.  
  8. struct MemHeader is
  9.   mh_Node:Node;
  10.   mh_Attributes:uword;
  11.   mh_First:ulong;
  12.   mh_Lower:ulong;
  13.   mh_Upper:ulong;
  14.   mh_Free:ulong;
  15. ;
  16.  
  17. struct MemEntry is
  18.   me_Un:union is
  19.     meu_Reqs:ulong;
  20.     meu_Addr:ulong;
  21.   ;
  22.   me_Length:ulong;
  23. ;
  24.  
  25. struct MemList is
  26.   ml_Node:Node;
  27.   ml_NumEntries:uword;
  28.   ml_ME[1]:MemEntry;
  29. ;
  30.  
  31. def ml_me = ml_ME;
  32.  
  33. def MEMF_ANY = (0);
  34. def MEMF_PUBLIC = (1<<0);
  35. def MEMF_CHIP = (1<<1);
  36. def MEMF_FAST = (1<<2);
  37. def MEMF_LOCAL = (1<<8);
  38. def MEMF_24BITDMA = (1<<9);
  39. def MEMF_KICK = (1<<10);
  40.  
  41. def MEMF_CLEAR = (1<<16);
  42. def MEMF_LARGEST = (1<<17);
  43. def MEMF_REVERSE = (1<<18);
  44. def MEMF_TOTAL = (1<<19);
  45.  
  46. def MEMF_NO_EXPUNGE = (1<<31);
  47.  
  48. def MEM_BLOCKSIZE = 8;
  49. def MEM_BLOCKMASK = (MEM_BLOCKSIZE-1);
  50.  
  51. struct MemHandlerData is
  52.   memh_RequestSize:ulong;
  53.   memh_RequestFlags:ulong;
  54.   memh_Flags:ulong;
  55. ;
  56.  
  57. def MEMHF_RECYCLE = (1<<0);
  58.  
  59. def MEM_DID_NOTHING = (0);
  60. def MEM_ALL_DONE = (-1);
  61. def MEM_TRY_AGAIN = (1);
  62.  
  63.